﻿<UserControl x:Class="Cartoons.DeepZoomBook"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Cartoons.Controls"
    xmlns:imaging="clr-namespace:System.Windows.Media.Imaging;assembly=System.Windows"
    MouseWheel="book_MouseWheel" 
    MouseLeftButtonDown="book_MouseLeftButtonDown" 
    MouseLeftButtonUp="book_MouseLeftButtonUp" 
    MouseMove="book_MouseMove"
    mc:Ignorable="d"
    x:Name="main" x:FieldModifier="private">
    <UserControl.Resources>
        
        <controls:PageListEffect x:Name="effect" PagingFactor="{Binding PagingFactor, ElementName=main}" x:Key="effect">
            <controls:PageListEffect.PrevState>
                <ImageBrush x:Name="imgBrush"/>
            </controls:PageListEffect.PrevState>
        </controls:PageListEffect>
    </UserControl.Resources>
    <Grid>
        <Canvas>
            <Rectangle Fill="Black" Opacity="0.9" Width="0" Height="0" x:Name="shadow" RadiusX="3" RadiusY="3"/>
        </Canvas>
        <Border BorderThickness="0" BorderBrush="Black" x:Name="bdr">
            <MultiScaleImage UseLayoutRounding="False" x:Name="msiBook" MotionFinished="msiBook_MotionFinished" x:FieldModifier="private">
            </MultiScaleImage>
        </Border>
    </Grid>
</UserControl>
